package hy.beans;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;
@Data
@Component
//@ConfigurationProperties(prefix = "person")
//@PropertySource("a.properties")
public class Person {
    @Value("${pe.name}")
    String name;
    @Value("#{b.age}")
    Integer age;
    Date birth;
    boolean married;
    Map maps;
    List lists;
}
